<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<title>{$title}</title>
 	<link href="./style/Maptrick.css" rel="stylesheet" type="text/css" media="screen" />
	<link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon" />
	<link rel="icon" href="./images/favicon.ico" type="image/x-icon" />
</head>

<body>

	{if $showHoC == true}
	<div class="header-18">{$team->getName()}</div>
 		
	<div class="header-14">Ranks in Hall of Cool</div>
	<table class="coolness_hoc">
		<tr>
			<th />
			<th align="right" colspan="2"><b>Global</b> <img src="./flags/0_mini.gif" alt="Global" /></th>
			<th align="right" colspan="2"><b>{$country->getName()}</b> <div class="flag" style="background-position: -{math equation='(x*y)' x=25 y=$country->getCountryID()}px 0px;" title="{$country->getName()}" /></th>
		</tr>
		<tr>
			<th />
			<th align="right"><b>Coolness</b></th>
			<th align="right"><b>Flags</b></th>
			<th align="right"><b>Coolness</b></th>
			<th align="right"><b>Flags</b></th>
		</tr>
		<tr>
			<th align="left"><b>visited</b></th>
			<td align="right"><a href="hallofcool.php?type=1&amp;term=1&amp;index={$rank_global_away_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_away_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=1&amp;term=2&amp;index={$rank_global_away_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_away_flag|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=1&amp;term=1&amp;country={$country->getCountryID()}&amp;index={$rank_country_away_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_away_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=1&amp;term=2&amp;country={$country->getCountryID()}&amp;index={$rank_country_away_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_away_flag|number_format:0:".":" "}.</a></td>
		</tr>
		<tr>
			<th align="left"><b>hosted</b></th>
			<td align="right"><a href="hallofcool.php?type=2&amp;term=1&amp;index={$rank_global_home_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_home_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=2&amp;term=2&amp;index={$rank_global_home_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_home_flag|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=2&amp;term=1&amp;country={$country->getCountryID()}&amp;index={$rank_country_home_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_home_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=2&amp;term=2&amp;country={$country->getCountryID()}&amp;index={$rank_country_home_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_home_flag|number_format:0:".":" "}.</a></td>
		</tr>
		<tr>
			<th align="left"><b>visited AND hosted</b></th>
			<td align="right"><a href="hallofcool.php?type=3&amp;term=1&amp;index={$rank_global_and_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_and_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=3&amp;term=2&amp;index={$rank_global_and_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_and_flag|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=3&amp;term=1&amp;country={$country->getCountryID()}&amp;index={$rank_country_and_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_and_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=3&amp;term=2&amp;country={$country->getCountryID()}&amp;index={$rank_country_and_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_and_flag|number_format:0:".":" "}.</a></td>
		</tr>
		<tr>
			<th align="left"><b>visited OR hosted</b></th>
			<td align="right"><a href="hallofcool.php?type=4&amp;term=1&amp;index={$rank_global_or_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_or_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=4&amp;term=2&amp;index={$rank_global_or_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_or_flag|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=4&amp;term=1&amp;country={$country->getCountryID()}&amp;index={$rank_country_or_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_or_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=4&amp;term=2&amp;country={$country->getCountryID()}&amp;index={$rank_country_or_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_or_flag|number_format:0:".":" "}.</a></td>
		</tr>
		<tr>
			<th align="left"><b>visited PLUS hosted</b></th>
			<td align="right"><a href="hallofcool.php?type=5&amp;term=1&amp;index={$rank_global_plus_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_plus_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=5&amp;term=2&amp;index={$rank_global_plus_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_global_plus_flag|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=5&amp;term=1&amp;country={$country->getCountryID()}&amp;index={$rank_country_plus_cool}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_plus_cool|number_format:0:".":" "}.</a></td>
			<td align="right"><a href="hallofcool.php?type=5&amp;term=2&amp;country={$country->getCountryID()}&amp;index={$rank_country_plus_flag}#{$team->getTeamID()}" title="Show the ranking in the Hall of Cool">{$rank_country_plus_flag|number_format:0:".":" "}.</a></td>
		</tr>
	</table>
	
	<div class="header-14">Conference code</div>
	<div>Click in the textarea and copy &amp; paste into Hattrick forum</div>
	<div><textarea class="cc-box" onclick="this.focus();this.select()" rows="6" cols="58" name="hocranks_text" readonly="readonly">{$hocranks}</textarea></div>
	
	{else}
	<div class="error-message"><p>There was an error. Something went wrong...</p></div>
	{/if}
		
</body>

</html>